﻿@using Cxuu.Common
@model IEnumerable<ViewCacheModel>


@{
    ViewData["Title"] = "缓存列表";
}

<div class="content-top-nav">
    <div class="layui-row">
        <div class="layui-col-md11">
            <h3 style="color:#444">
                <i class="layui-icon layui-icon-home"></i>
                @ViewData["Title"]
            </h3>
        </div>
        <div class="layui-col-md1" style="text-align:right;">

        </div>
    </div>
    <hr>
</div>

<div class="layui-fluid" style="margin-bottom:50px;">
     <script type="text/html" id="toolbarAE">
        <div><i class="layui-icon layui-icon-log"></i> 缓存管理</div>
    </script>
    <table class="layui-hide" id="currentTableId" lay-data="{id: 'idReload'}" lay-filter="currentTableFilter"></table>
</div> 

<script>
    layui.use(['table', 'jquery', 'form'], function () {
        var table = layui.table, $ = layui.jquery, form = layui.form;

        form.render();

        table.render({
            elem: '#currentTableId',
            url: '/Admin/Cache/Index?json=1',
            toolbar: '#toolbarAE',
            cols: [[
                { field: 'name', title: '缓存类型' },
                { field: 'val', title: '缓存条数', sort: true },
                { field: 'size', title: '占用内存', sort: true },
            ]],
            id: 'tableReload',
            page: false
        });
    });
</script>
